import { HttpClient } from "@/services/http";
import { baseURL } from "./base";

class Auth {
  // 通过code获取token
  async throughCodeGetToken({ data }: { data?: null }) {
    return await HttpClient["get"]({
      url: `${baseURL}api-uaa/oauth/weixinCode/token`,
      payload: data,
      config: {
        // server: 'https://61303d0d5fc50700175f182e.mockapi.io'
      },
    });
  }

}

export default Auth;
